define(["jquery","layuiall","zTree","jqform","helper"],function ($,layui,zTree,jqform,helper) {
    controller = {
        index:function () {
            jqform.init();
            $(".updimg").click(function () {
                var url = '/admin/webupload/webuploader/multi/1/filetype/image/app/post/tab/local'
                uploadFiles({
                    //上传成功后的文件
                     file:function (res) {
                        console.log(JSON.parse(res))
                        localStorage.removeItem("upload");
                     },
                     //上传地址
                     url:url
                 });
            })
        }
    }
    return controller;
})